package com.smartleanx.module.hrm.eums.dingding;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
@Getter
public enum DingDingErroCodeEnum {

    illegalCalculateType( "illegalCalculateType","不合法的时长计算模式"),
    illegalDurationUnit("illegalDurationUnit","不合法的时长单位"),
    illegalApproveType("illegalApproveType","不合法的审批类型"),
    invalidRequestParams("invalidRequestParams","参数错误（请根据文档检查对应参数）"),
    illegalOvertimeDurationUnit("illegalOvertimeDurationUnit","不合法的加班时长单位（加班仅支持按小时）"),
    illegalDateTypeForHalfDay("illegalDateTypeForHalfDay","不合法的开始结束时间格式forDURATION_UNIT为半天"),
    beginDateCannotAfterEndDate("beginDateCannotAfterEndDate","开始时间不能晚于结束时间"),
    durationTooLong("durationTooLong","开始结束时间跨度过大"),
    dateTooEarly("dateTooEarly","时间不能在指定天数之前"),
    overtimeDurationTooLong("overtimeDurationTooLong","加班时长过长"),
    repeatApprovesOverLimit("repeatApprovesOverLimit","时间存在重复的审批单写入超过限制"),
    systemError("systemError","系统错误");
    private final String errorCode;
    private final String name;




    public static void main(String[] args) {
        DingDingErroCodeEnum illegalCalculateType1 = DingDingErroCodeEnum.valueOf("illegalCalculateType");
        System.err.println(illegalCalculateType1.name);
    }
}
